<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
   <%@ page import= "beans.MozoBean" %>
   <%@ page import= "beans.MesaBean" %>
   <%@ page import= "java.util.Iterator"%>
   <%@ page import= "java.util.ArrayList"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Apertura de Mesa</title>
</head>
<body>
	<body topmargin="0" leftmargin="0" bgcolor="#E0ECFE")>
	
	<form name="formabrirMesa" action="./AperturaMesa" method="Get">
		<br>
		<center><legend>Nueva Apertura de Mesa</legend></center>
		<br>
		<br>
		<input type="hidden"  name="idSucursal" value="1" />
		
		<%
		MozoBean aux;
		ArrayList<MozoBean>	 mozos = (ArrayList<MozoBean>) request.getAttribute("listamozos");
		%>
		<b>Seleccionar Mozo</b>  <br>      <select name= "combomozo">
		
		<%
		for(Iterator<MozoBean> i = mozos.iterator(); i.hasNext();)
		{
			aux = i.next();
			aux.getLegajo();
			
		%>
			<option><%=aux.getLegajo() %>  <%=aux.getApellido()%></option>
			<%}%>
			</select>
			
	
		
			<br>	
		
		
		
		
		<br>
		<br>
		<legend>Ingresar cantidad de Comensales</legend>
		<input type="text" name="cantComensales"   size="1">
		<br>
		<br>
		<br>
		<p></p>
		<legend>Sector</legend>
		<input type="text" name="sectorId" value="" size="3"></td>
		<br>
		
		<a href="AperturaMesa?action=MostrarMesa" target="_self"><h3>Seleccionar Mesa</h3></
		<p></p>
		<br>
		<br>
		<br>
		<!--  <input type="submit" name="mozobuscar" value="Buscar Mozo" >-->
			<input type="submit" name="action" value="procarAperturaMesa">
			<a href="AperturaMesa?action=procesarAperturaMesa" target="_self"><h3>Procesar</h3></a>
			<a href="AperturaMesa?action=default" target="_self">Volver</a>
		</form>
	
</body>
</html>